package com.petAdoption.manager.mapper;


import com.petAdoption.manager.entity.Pet;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.petAdoption.manager.vo.PetVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 王倩茹
 * @since 2023-08-28
 */

@Mapper
public interface PetMapper extends BaseMapper<Pet> {

     //根据id查找
     List<PetVO> findByName(String petName);

     //查找所有
     List<PetVO> findPetAll();

     //添加
     int addPet(Pet pet);

     //修改
     int updatePet(Pet pet);

     List<PetVO> findByNameAll(String petName);
}
